﻿using MediatR;
using ProduceBasicData.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace ProduceBasicData.Api.Application.Command.ProductionManage
{
    public class UpdateWorkCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string Order_no { get; set; }
        /// <summary>
        /// 工单类型
        /// </summary>
        public string Work_type { get; set; }
        /// <summary>
        /// 客户id
        /// </summary>
        public int Customer_id { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int Product_id { get; set; }
        /// <summary>
        /// 产线id
        /// </summary>
        public int Producttion_id { get; set; }
        /// <summary>
        /// 订单数量
        /// </summary>
        public int Order_number { get; set; }
        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime Start_time { get; set; }
        /// <summary>
        /// 计划结束时间
        /// </summary>
        public DateTime End_time { get; set; }
        /// <summary>
        /// 工单状态  1已下达,2已上线,3已完成
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public string Upload { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Work_Desc { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } 
        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; } = DateTime.Now;
    }
}
